Skip to content

Fix PHP 8.1 deprecation notice #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 10, 2021
Merged

Fix PHP 8.1 deprecation notice #407

merged 2 commits into from
Nov 10, 2021

Conversation

stephanvierkant
Copy link
Contributor

@stephanvierkant stephanvierkant commented Nov 10, 2021

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
License MIT

What's in this PR?

Fixes this deprecation notice in PHP 8.1:

Deprecated: Optional parameter $cloner declared before required parameter $dumper is implicitly treated as a required parameter in {project}/vendor/php-http/httplug-bundle/src/Collector/Twig/HttpMessageMarkupExtension.php on line 29

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
  • Documentation pull request created (if not simply a bugfix)

@ostrolucky ostrolucky merged commit be711a0 into php-http:master Nov 10, 2021
@stephanvierkant stephanvierkant deleted the patch-1 branch November 10, 2021 20:48
Copy link
Collaborator

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@ruudk
Copy link
Contributor

ruudk commented Nov 13, 2021

Thanks for fixing this 👏

It would be great to have this tagged 🙏

@ostrolucky
Copy link
Collaborator

We are not going to create a release claiming PHP 8.1 compatibility if we are not running tests under 8.1

@ruudk ruudk mentioned this pull request Nov 13, 2021
@ruudk
Copy link
Contributor

ruudk commented Nov 13, 2021

It doesn't have to claim PHP 8.1 compatibility. It can claim that it fixes at least one deprecation.

Created a PR to add PHP 8.1 to CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants